package com.onpositive.dataminer.rcp.views;

import org.eclipse.jface.viewers.IStructuredSelection;

import com.onpositive.dataminer.core.BasicPropertyMetaAcessor;
import com.onpositive.knowledge.model.values.PropertyValuePair;
import com.onpositive.semantic.model.api.meta.IWritableMeta;
import com.onpositive.semantic.model.api.property.IProperty;
import com.onpositive.semantic.model.api.property.PropertyAccess;
import com.onpositive.semantic.model.ui.property.editors.structured.ListEnumeratedValueSelector;

public class PropertyDetailsView extends PropertyView {

	public PropertyDetailsView() {
		super("/ui/propertyDetails.dlf");
	}

	@Override
	protected Object transform(Object value) {
		if (value != null) {
			IProperty p = (IProperty) value;
			return new BasicPropertyMetaAcessor((IWritableMeta) p.getMeta());
		}
		return super.transform(value);
	}

	
}
